const KoaRouter = require('@koa/router')
const {
  create,
  reply

} = require('../controller/comment.controller')
const { verifyAuth } = require('../middleware/login.middleware')
// const { verifyPermission } = require('../middleware/perission.middleware')

const commentRouter = new KoaRouter({ prefix: '/comment' })
// 增 新增评论
commentRouter.post('/', verifyAuth, create)
// 增 新增回复评论
commentRouter.post('/reply', verifyAuth, reply)
//2  查询动态（根据id）

// // // 3 删 删除评论




// // 3 删 删除评论
// commentRouter.delete('/:commentId', verifyAuth, verifyPermission, remove)

// // 4 改 修改评论
// commentRouter.patch('/:commentId', verifyAuth, verifyPermission, update)
module.exports = commentRouter
